home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / lfsstats / RCS / mkstatprint.awk,v < prev   
Encoding:
Text File  |  1991-05-31  |  1.0 KB  |  42 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     91.05.31.13.54.42;  author mendel;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Awk script to generate statprint.h from lfsStats.h
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @BEGIN        { skip = 1; }
  27. /typedef struct Lfs_StatsVersion/ { skip = 0; }
  28. /LfsLogStats/ { i = "log"; s = $2;  next;  }
  29. /LfsCheckPointStats/ { i = "checkpoint"; s = $2;  next;  }
  30. /LfsLogCleanStats/ { i = "cleaning"; s = $2;  next;  }
  31. /LfsBlockIOStats/ { i = "blockio"; s = $2;  next;  }
  32. /LfsDescStats/ { i = "desc"; s = $2;   next;  }
  33. /LfsIndexStats/ { i = "index"; s = $2;   next;  }
  34. /LfsFileLayoutStats/ { i = "layout"; s = $2;   next;  }
  35. /LfsSegUsageStats/ { i = "segusage"; s = $2;   next;  }
  36. /LfsCacheBackendStats/ { i = "backend"; s = $2; next;  }
  37. /LfsDirLogStats/ { i = "dirlog"; s = $2; next;  }
  38. /padding/    { next; }
  39. /#undef LFSCOUNT/ { skip = 1; next; }
  40. /LFSCOUNT/    { if (skip) next; print "printf(\"" s "." substr($2,1,length($2)-1) " %d\\n\", statsPtr->" i "." substr($2,1,length($2)-1) ".low);" ; next;} 
  41. @
  42.